//////////////////////////////////////////////////////////
// This class has been automatically generated on
// Sat Jan 17 11:25:08 2015 by ROOT version 5.34/14
// from TTree default/7
// found on file: AnaOut_allA0.root
//////////////////////////////////////////////////////////

#ifndef AnaTask1_h
#define AnaTask1_h

#include <TROOT.h>
#include <TChain.h>
#include <TFile.h>

// Header file for the classes stored in the TTree if any.

// Fixed size dimensions of array or collections stored in the TTree if any.

class AnaTask1 {
public :
   TTree          *fChain;   //!pointer to the analyzed TTree or TChain
   Int_t           fCurrent; //!current Tree number in a TChain

   // Declaration of leaf types
   Int_t           NTOYS;
   Int_t           toy_index[1];   //[NTOYS]
   Double_t        toy_weight[1];   //[NTOYS]
   Int_t           entry;
   Int_t           toy_ref;
   Float_t         weight_syst[1][18];   //[NTOYS]
   Float_t         weight_syst_total[1];   //[NTOYS]
   Int_t           NWEIGHTSYST;
   Int_t           HMPdetector;
   Int_t           HMPgparent;
   Int_t           HMPmectopology;
   Int_t           HMPnutype;
   Int_t           HMPparent;
   Int_t           HMPparticle;
   Int_t           HMPprimary;
   Int_t           HMPreaction;
   Int_t           HMPreaction2;
   Int_t           HMPreactionnofv;
   Int_t           HMPreactionsand;
   Int_t           HMPreactionsand2;
   Int_t           HMPtarget;
   Int_t           HMPtopology;
   Int_t           HMPtopology2;
   Int_t           detector;
   Int_t           gparent;
   Int_t           mectopology;
   Int_t           nutype;
   Int_t           parent;
   Int_t           particle;
   Int_t           primary;
   Int_t           reaction;
   Int_t           reaction2;
   Int_t           reactionnofv;
   Int_t           reactionsand;
   Int_t           reactionsand2;
   Int_t           target;
   Int_t           topology;
   Int_t           topology2;
   Int_t           redo[1];   //[NTOYS]
   Int_t           accum_level[1][4];   //[NTOYS]
   Int_t           cut0[1][4];   //[NTOYS]
   Int_t           cut1[1][4];   //[NTOYS]
   Int_t           cut2[1][4];   //[NTOYS]
   Int_t           cut3[1][4];   //[NTOYS]
   Int_t           cut4[1][4];   //[NTOYS]
   Int_t           cut5[1][4];   //[NTOYS]
   Int_t           cut6[1][4];   //[NTOYS]
   Int_t           cut7[1][4];   //[NTOYS]
   Int_t           cut8[1][4];   //[NTOYS]
   Int_t           cut9[1][4];   //[NTOYS]
   Int_t           cut10[1][4];   //[NTOYS]
   Int_t           cut11[1][4];   //[NTOYS]
   Float_t         toy_par_weight[1][0];   //[NTOYS]
   Float_t         toy_par_var[1][0];   //[NTOYS]
   Int_t           run;
   Int_t           subrun;
   Int_t           evt;
   Int_t           bunch;
   Int_t           ntpctracks;
   Int_t           ntpcposQualityFV;
   Int_t           ntpcnegQualityFV;
   Int_t           nfgdtracks;
   Int_t           nfgdonlytracks;
   Int_t           NWEIGHTS;
   Float_t         weight[2];   //[NWEIGHTS]
   Int_t           chargeid_nwrong[50];
   Int_t           chargeid_ncorrect[50];
   Int_t           tpcfgdmatch_nwrong[50];
   Int_t           tpcfgdmatch_ncorrect[50];
   Int_t           tpctr_nwrong[50];
   Int_t           tpctr_ncorrect[50];
   Int_t           fgdtr_nwrong[50];
   Int_t           fgdtr_ncorrect[50];
   Int_t           fgdhybtr_nwrong[50];
   Int_t           fgdhybtr_ncorrect[50];
   Int_t           meeff_nwrong[50];
   Int_t           meeff_ncorrect[50];
   Int_t           mepur_nwrong[50];
   Int_t           mepur_ncorrect[50];
   Int_t           TruthVertexID;
   Int_t           RooVtxIndex;
   Int_t           RooVtxEntry;
   Int_t           nu_parentpdg;
   Int_t           nu_pdg;
   Float_t         nu_trueE;
   Int_t           nu_truereac;
   Float_t         nu_truedir[3];
   Int_t           vertex_det;
   Float_t         vertex_pos[4];
   Float_t         vertex_truepos[4];
   Float_t         nu_NuParentDecPoint[4];
   Float_t         selmu_truemom;
   Float_t         selmu_truepos[4];
   Float_t         selmu_trueendpos[4];
   Float_t         selmu_truedir[3];
   Float_t         truemu_truemom;
   Float_t         truemu_truecostheta;
   Float_t         truemu_truedir[3];
   Float_t         selmu_dir[3];
   Float_t         selmu_pos[4];
   Float_t         selmu_endpos[4];
   Float_t         selmu_costheta;
   Int_t           selmu_closest_tpc;
   Int_t           selmu_detectors;
   Float_t         selmu_mom[1];   //[NTOYS]
   Float_t         selmu_MomentumError[1];   //[NTOYS]
   Int_t           selmu_NDOF[1];   //[NTOYS]
   Float_t         selmu_Chi2[1];   //[NTOYS]
   Float_t         selmu_RangeMomentumMuon[1];   //[NTOYS]
   Float_t         selmu_theta[1];   //[NTOYS]
   Float_t         selmu_amom;
   Float_t         selmu_likemu;
   Float_t         selmu_likemip;
   Float_t         shmn_mom;
   Int_t           selmu_ntpcs;
   Int_t           selmu_tpc_det[3];   //[selmu_ntpcs]
   Int_t           selmu_tpc_nhits[3];   //[selmu_ntpcs]
   Int_t           selmu_tpc_nnodes[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_charge[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_mom[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_bfield_mom[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_efield_mom[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_emom[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_truemom[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_dedx_raw[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_dedx_expmu[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_dedx_exppi[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_dedx_expele[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_dedx_expp[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_pullmu[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_pullpi[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_pullele[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_pullp[3];   //[selmu_ntpcs]
   Float_t         selmu_tpc_dedx[3];   //[selmu_ntpcs]
   Int_t           selmu_nfgds;
   Int_t           selmu_fgd_det[2];   //[selmu_nfgds]
   Float_t         selmu_fgd_x[2];   //[selmu_nfgds]
   Float_t         selmu_fgd_V00[2];   //[selmu_nfgds]
   Float_t         selmu_fgd_V11[2];   //[selmu_nfgds]
   Float_t         selmu_fgd_V33[2];   //[selmu_nfgds]
   Float_t         selmu_fgd_V55[2];   //[selmu_nfgds]
   Float_t         selmu_fgd_V77[2];   //[selmu_nfgds]
   Float_t         selmu_fgd_pullmu[2];   //[selmu_nfgds]
   Int_t           selmu_necals;
   Int_t           selmu_ecal_det[2];   //[selmu_necals]
   Int_t           selmu_ecal_nhits[2];   //[selmu_necals]
   Int_t           selmu_ecal_nnodes[2];   //[selmu_necals]
   Float_t         selmu_ecal_length[2];   //[selmu_necals]
   Float_t         selmu_ecal_showerstartpos[2][4];   //[selmu_necals]
   Float_t         selmu_ecal_showerendpos[2][4];   //[selmu_necals]
   Float_t         selmu_ecal_showerstartdir[2][3];   //[selmu_necals]
   Float_t         selmu_ecal_showerenddir[2][3];   //[selmu_necals]
   Float_t         selmu_ecal_EMenergy[2];   //[selmu_necals]
   Float_t         selmu_ecal_edeposit[2];   //[selmu_necals]
   Int_t           selmu_ecal_IsShower[2];   //[selmu_necals]
   Float_t         selmu_ecal_mipem[2];   //[selmu_necals]
   Float_t         selmu_ecal_mippion[2];   //[selmu_necals]
   Float_t         selmu_ecal_emhip[2];   //[selmu_necals]
   Float_t         selmu_ecal_containment[2];   //[selmu_necals]
   Float_t         selmu_ecal_trshval[2];   //[selmu_necals]
   Int_t           selmu_ecal_mostupstreamlayerhit[2];   //[selmu_necals]
   Int_t           fgd_ecal_match_failed[50];
   Int_t           fgd_ecal_match_success[50];
   Int_t           fgdecal_smrd_match_failed[50];
   Int_t           fgdecal_smrd_match_success[50];
   Float_t         HM_pos[4];
   Float_t         selmu_invpt;
   Float_t         selmu_trueinvpt;
   Int_t           selmu_charge;
   Int_t           selmu_truecharge;
   Float_t         selmu_length;
   Int_t           nmichel1;
   Int_t           nmichel2;
   Float_t         nu_e[1];   //[NTOYS]
   Float_t         nu_e_2tracks[1];   //[NTOYS]
   Float_t         nu_e_2tracks_mumomrange[1];   //[NTOYS]
   Float_t         nu_e_momrange;
   Float_t         nu_e_momrange_vertex;
   Float_t         q2_rec[1];   //[NTOYS]
   Float_t         q2_rec_momrange;
   Float_t         selmu_mom_range[1];   //[NTOYS]
   Float_t         selmu_mom_range_vertex[1];   //[NTOYS]
   Float_t         selmu_trueztheta;
   Float_t         selmu_truenutheta;
   Float_t         selp_truemom;
   Float_t         selp_truepos[4];
   Float_t         selp_trueendpos[4];
   Float_t         selp_truedir[4];
   Float_t         selp_trueztheta;
   Float_t         selp_truenutheta;
   Float_t         selp_mom[1];   //[NTOYS]
   Float_t         selp_amom[1];   //[NTOYS]
   Float_t         selp_mom_range[1];   //[NTOYS]
   Float_t         selp_mom_range_vertex[1];   //[NTOYS]
   Float_t         selp_costheta[1];   //[NTOYS]
   Float_t         selp_dir[3];
   Float_t         selp_theta;
   Float_t         selp_pos[4];
   Float_t         selp_endpos[4];
   Float_t         selp_likep[1];   //[NTOYS]
   Float_t         selp_likemip[1];   //[NTOYS]
   Int_t           selp_closest_tpc;
   Int_t           selp_detectors;
   Int_t           selp_ntpcs;
   Int_t           selp_tpc_det[2];   //[selp_ntpcs]
   Int_t           selp_tpc_nhits[2];   //[selp_ntpcs]
   Int_t           selp_tpc_nnodes[2];   //[selp_ntpcs]
   Float_t         selp_tpc_charge[2];   //[selp_ntpcs]
   Float_t         selp_tpc_mom[2];   //[selp_ntpcs]
   Float_t         selp_tpc_emom[2];   //[selp_ntpcs]
   Float_t         selp_tpc_truemom[2];   //[selp_ntpcs]
   Float_t         selp_tpc_dedx_raw[2];   //[selp_ntpcs]
   Float_t         selp_tpc_dedx_expmu[2];   //[selp_ntpcs]
   Float_t         selp_tpc_dedx_exppi[2];   //[selp_ntpcs]
   Float_t         selp_tpc_dedx_expele[2];   //[selp_ntpcs]
   Float_t         selp_tpc_dedx_expp[2];   //[selp_ntpcs]
   Int_t           selp_nfgds;
   Int_t           selp_fgd_det[2];   //[selp_nfgds]
   Float_t         selp_fgd_x[2];   //[selp_nfgds]
   Float_t         selp_vertex_det;
   Float_t         selp_vertex_pos[4];
   Float_t         selp_vertex_truepos[4];
   Int_t           nalltpctracks;
   Int_t           ntpcnegQualityOutFV;
   Int_t           ntpcposQualityOutFV;
   Int_t           nbadquaFV;
   Int_t           nbadquaOutFV;
   Int_t           nallfgd1tracks;
   Int_t           nallfgd1conttracks;
   Int_t           nfgdContFV;
   Int_t           nfgdContOutFV;
   Int_t           nfgdothertracks;
   Int_t           ntrackertracks;

   // List of branches
   TBranch        *b_NTOYS;   //!
   TBranch        *b_toy_index;   //!
   TBranch        *b_toy_weight;   //!
   TBranch        *b_entry;   //!
   TBranch        *b_toy_ref;   //!
   TBranch        *b_weight_syst;   //!
   TBranch        *b_weight_syst_total;   //!
   TBranch        *b_NWEIGHTSYST;   //!
   TBranch        *b_HMPdetector;   //!
   TBranch        *b_HMPgparent;   //!
   TBranch        *b_HMPmectopology;   //!
   TBranch        *b_HMPnutype;   //!
   TBranch        *b_HMPparent;   //!
   TBranch        *b_HMPparticle;   //!
   TBranch        *b_HMPprimary;   //!
   TBranch        *b_HMPreaction;   //!
   TBranch        *b_HMPreaction2;   //!
   TBranch        *b_HMPreactionnofv;   //!
   TBranch        *b_HMPreactionsand;   //!
   TBranch        *b_HMPreactionsand2;   //!
   TBranch        *b_HMPtarget;   //!
   TBranch        *b_HMPtopology;   //!
   TBranch        *b_HMPtopology2;   //!
   TBranch        *b_detector;   //!
   TBranch        *b_gparent;   //!
   TBranch        *b_mectopology;   //!
   TBranch        *b_nutype;   //!
   TBranch        *b_parent;   //!
   TBranch        *b_particle;   //!
   TBranch        *b_primary;   //!
   TBranch        *b_reaction;   //!
   TBranch        *b_reaction2;   //!
   TBranch        *b_reactionnofv;   //!
   TBranch        *b_reactionsand;   //!
   TBranch        *b_reactionsand2;   //!
   TBranch        *b_target;   //!
   TBranch        *b_topology;   //!
   TBranch        *b_topology2;   //!
   TBranch        *b_redo;   //!
   TBranch        *b_accum_level;   //!
   TBranch        *b_cut0;   //!
   TBranch        *b_cut1;   //!
   TBranch        *b_cut2;   //!
   TBranch        *b_cut3;   //!
   TBranch        *b_cut4;   //!
   TBranch        *b_cut5;   //!
   TBranch        *b_cut6;   //!
   TBranch        *b_cut7;   //!
   TBranch        *b_cut8;   //!
   TBranch        *b_cut9;   //!
   TBranch        *b_cut10;   //!
   TBranch        *b_cut11;   //!
   TBranch        *b_toy_par_weight;   //!
   TBranch        *b_toy_par_var;   //!
   TBranch        *b_run;   //!
   TBranch        *b_subrun;   //!
   TBranch        *b_evt;   //!
   TBranch        *b_bunch;   //!
   TBranch        *b_ntpctracks;   //!
   TBranch        *b_ntpcposQualityFV;   //!
   TBranch        *b_ntpcnegQualityFV;   //!
   TBranch        *b_nfgdtracks;   //!
   TBranch        *b_nfgdonlytracks;   //!
   TBranch        *b_NWEIGHTS;   //!
   TBranch        *b_weight;   //!
   TBranch        *b_chargeid_nwrong;   //!
   TBranch        *b_chargeid_ncorrect;   //!
   TBranch        *b_tpcfgdmatch_nwrong;   //!
   TBranch        *b_tpcfgdmatch_ncorrect;   //!
   TBranch        *b_tpctr_nwrong;   //!
   TBranch        *b_tpctr_ncorrect;   //!
   TBranch        *b_fgdtr_nwrong;   //!
   TBranch        *b_fgdtr_ncorrect;   //!
   TBranch        *b_fgdhybtr_nwrong;   //!
   TBranch        *b_fgdhybtr_ncorrect;   //!
   TBranch        *b_meeff_nwrong;   //!
   TBranch        *b_meeff_ncorrect;   //!
   TBranch        *b_mepur_nwrong;   //!
   TBranch        *b_mepur_ncorrect;   //!
   TBranch        *b_TruthVertexID;   //!
   TBranch        *b_RooVtxIndex;   //!
   TBranch        *b_RooVtxEntry;   //!
   TBranch        *b_nu_parentpdg;   //!
   TBranch        *b_nu_pdg;   //!
   TBranch        *b_nu_trueE;   //!
   TBranch        *b_nu_truereac;   //!
   TBranch        *b_nu_truedir;   //!
   TBranch        *b_vertex_det;   //!
   TBranch        *b_vertex_pos;   //!
   TBranch        *b_vertex_truepos;   //!
   TBranch        *b_nu_NuParentDecPoint;   //!
   TBranch        *b_selmu_truemom;   //!
   TBranch        *b_selmu_truepos;   //!
   TBranch        *b_selmu_trueendpos;   //!
   TBranch        *b_selmu_truedir;   //!
   TBranch        *b_truemu_truemom;   //!
   TBranch        *b_truemu_truecostheta;   //!
   TBranch        *b_truemu_truedir;   //!
   TBranch        *b_selmu_dir;   //!
   TBranch        *b_selmu_pos;   //!
   TBranch        *b_selmu_endpos;   //!
   TBranch        *b_selmu_costheta;   //!
   TBranch        *b_selmu_closest_tpc;   //!
   TBranch        *b_selmu_detectors;   //!
   TBranch        *b_selmu_mom;   //!
   TBranch        *b_selmu_MomentumError;   //!
   TBranch        *b_selmu_NDOF;   //!
   TBranch        *b_selmu_Chi2;   //!
   TBranch        *b_selmu_RangeMomentumMuon;   //!
   TBranch        *b_selmu_theta;   //!
   TBranch        *b_selmu_amom;   //!
   TBranch        *b_selmu_likemu;   //!
   TBranch        *b_selmu_likemip;   //!
   TBranch        *b_shmn_mom;   //!
   TBranch        *b_selmu_ntpcs;   //!
   TBranch        *b_selmu_tpc_det;   //!
   TBranch        *b_selmu_tpc_nhits;   //!
   TBranch        *b_selmu_tpc_nnodes;   //!
   TBranch        *b_selmu_tpc_charge;   //!
   TBranch        *b_selmu_tpc_mom;   //!
   TBranch        *b_selmu_tpc_bfield_mom;   //!
   TBranch        *b_selmu_tpc_efield_mom;   //!
   TBranch        *b_selmu_tpc_emom;   //!
   TBranch        *b_selmu_tpc_truemom;   //!
   TBranch        *b_selmu_tpc_dedx_raw;   //!
   TBranch        *b_selmu_tpc_dedx_expmu;   //!
   TBranch        *b_selmu_tpc_dedx_exppi;   //!
   TBranch        *b_selmu_tpc_dedx_expele;   //!
   TBranch        *b_selmu_tpc_dedx_expp;   //!
   TBranch        *b_selmu_tpc_pullmu;   //!
   TBranch        *b_selmu_tpc_pullpi;   //!
   TBranch        *b_selmu_tpc_pullele;   //!
   TBranch        *b_selmu_tpc_pullp;   //!
   TBranch        *b_selmu_tpc_dedx;   //!
   TBranch        *b_selmu_nfgds;   //!
   TBranch        *b_selmu_fgd_det;   //!
   TBranch        *b_selmu_fgd_x;   //!
   TBranch        *b_selmu_fgd_V00;   //!
   TBranch        *b_selmu_fgd_V11;   //!
   TBranch        *b_selmu_fgd_V33;   //!
   TBranch        *b_selmu_fgd_V55;   //!
   TBranch        *b_selmu_fgd_V77;   //!
   TBranch        *b_selmu_fgd_pullmu;   //!
   TBranch        *b_selmu_necals;   //!
   TBranch        *b_selmu_ecal_det;   //!
   TBranch        *b_selmu_ecal_nhits;   //!
   TBranch        *b_selmu_ecal_nnodes;   //!
   TBranch        *b_selmu_ecal_length;   //!
   TBranch        *b_selmu_ecal_showerstartpos;   //!
   TBranch        *b_selmu_ecal_showerendpos;   //!
   TBranch        *b_selmu_ecal_showerstartdir;   //!
   TBranch        *b_selmu_ecal_showerenddir;   //!
   TBranch        *b_selmu_ecal_EMenergy;   //!
   TBranch        *b_selmu_ecal_edeposit;   //!
   TBranch        *b_selmu_ecal_IsShower;   //!
   TBranch        *b_selmu_ecal_mipem;   //!
   TBranch        *b_selmu_ecal_mippion;   //!
   TBranch        *b_selmu_ecal_emhip;   //!
   TBranch        *b_selmu_ecal_containment;   //!
   TBranch        *b_selmu_ecal_trshval;   //!
   TBranch        *b_selmu_ecal_mostupstreamlayerhit;   //!
   TBranch        *b_fgd_ecal_match_failed;   //!
   TBranch        *b_fgd_ecal_match_success;   //!
   TBranch        *b_fgdecal_smrd_match_failed;   //!
   TBranch        *b_fgdecal_smrd_match_success;   //!
   TBranch        *b_HM_pos;   //!
   TBranch        *b_selmu_invpt;   //!
   TBranch        *b_selmu_trueinvpt;   //!
   TBranch        *b_selmu_charge;   //!
   TBranch        *b_selmu_truecharge;   //!
   TBranch        *b_selmu_length;   //!
   TBranch        *b_nmichel1;   //!
   TBranch        *b_nmichel2;   //!
   TBranch        *b_nu_e;   //!
   TBranch        *b_nu_e_2tracks;   //!
   TBranch        *b_nu_e_2tracks_mumomrange;   //!
   TBranch        *b_nu_e_momrange;   //!
   TBranch        *b_nu_e_momrange_vertex;   //!
   TBranch        *b_q2_rec;   //!
   TBranch        *b_q2_rec_momrange;   //!
   TBranch        *b_selmu_mom_range;   //!
   TBranch        *b_selmu_mom_range_vertex;   //!
   TBranch        *b_selmu_trueztheta;   //!
   TBranch        *b_selmu_truenutheta;   //!
   TBranch        *b_selp_truemom;   //!
   TBranch        *b_selp_truepos;   //!
   TBranch        *b_selp_trueendpos;   //!
   TBranch        *b_selp_truedir;   //!
   TBranch        *b_selp_trueztheta;   //!
   TBranch        *b_selp_truenutheta;   //!
   TBranch        *b_selp_mom;   //!
   TBranch        *b_selp_amom;   //!
   TBranch        *b_selp_mom_range;   //!
   TBranch        *b_selp_mom_range_vertex;   //!
   TBranch        *b_selp_costheta;   //!
   TBranch        *b_selp_dir;   //!
   TBranch        *b_selp_theta;   //!
   TBranch        *b_selp_pos;   //!
   TBranch        *b_selp_endpos;   //!
   TBranch        *b_selp_likep;   //!
   TBranch        *b_selp_likemip;   //!
   TBranch        *b_selp_closest_tpc;   //!
   TBranch        *b_selp_detectors;   //!
   TBranch        *b_selp_ntpcs;   //!
   TBranch        *b_selp_tpc_det;   //!
   TBranch        *b_selp_tpc_nhits;   //!
   TBranch        *b_selp_tpc_nnodes;   //!
   TBranch        *b_selp_tpc_charge;   //!
   TBranch        *b_selp_tpc_mom;   //!
   TBranch        *b_selp_tpc_emom;   //!
   TBranch        *b_selp_tpc_truemom;   //!
   TBranch        *b_selp_tpc_dedx_raw;   //!
   TBranch        *b_selp_tpc_dedx_expmu;   //!
   TBranch        *b_selp_tpc_dedx_exppi;   //!
   TBranch        *b_selp_tpc_dedx_expele;   //!
   TBranch        *b_selp_tpc_dedx_expp;   //!
   TBranch        *b_selp_nfgds;   //!
   TBranch        *b_selp_fgd_det;   //!
   TBranch        *b_selp_fgd_x;   //!
   TBranch        *b_selp_vertex_det;   //!
   TBranch        *b_selp_vertex_pos;   //!
   TBranch        *b_selp_vertex_truepos;   //!
   TBranch        *b_nalltpctracks;   //!
   TBranch        *b_ntpcnegQualityOutFV;   //!
   TBranch        *b_ntpcposQualityOutFV;   //!
   TBranch        *b_nbadquaFV;   //!
   TBranch        *b_nbadquaOutFV;   //!
   TBranch        *b_nallfgd1tracks;   //!
   TBranch        *b_nallfgd1conttracks;   //!
   TBranch        *b_nfgdContFV;   //!
   TBranch        *b_nfgdContOutFV;   //!
   TBranch        *b_nfgdothertracks;   //!
   TBranch        *b_ntrackertracks;   //!

   AnaTask1(TTree *tree=0);
   virtual ~AnaTask1();
   virtual Int_t    Cut(Long64_t entry);
   virtual Int_t    GetEntry(Long64_t entry);
   virtual Long64_t LoadTree(Long64_t entry);
   virtual void     Init(TTree *tree);
   virtual void     Loop();
   virtual Bool_t   Notify();
   virtual void     Show(Long64_t entry = -1);
};

#endif

#ifdef AnaTask1_cxx
AnaTask1::AnaTask1(TTree *tree) : fChain(0) 
{
// if parameter tree is not specified (or zero), connect the file
// used to generate this class and read the Tree.
   if (tree == 0) {
      TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("AnaOut_allA0.root");
      if (!f || !f->IsOpen()) {
         f = new TFile("AnaOut_allA0.root");
      }
      f->GetObject("default",tree);

   }
   Init(tree);
}

AnaTask1::~AnaTask1()
{
   if (!fChain) return;
   delete fChain->GetCurrentFile();
}

Int_t AnaTask1::GetEntry(Long64_t entry)
{
// Read contents of entry.
   if (!fChain) return 0;
   return fChain->GetEntry(entry);
}
Long64_t AnaTask1::LoadTree(Long64_t entry)
{
// Set the environment to read one entry
   if (!fChain) return -5;
   Long64_t centry = fChain->LoadTree(entry);
   if (centry < 0) return centry;
   if (fChain->GetTreeNumber() != fCurrent) {
      fCurrent = fChain->GetTreeNumber();
      Notify();
   }
   return centry;
}

void AnaTask1::Init(TTree *tree)
{
   // The Init() function is called when the selector needs to initialize
   // a new tree or chain. Typically here the branch addresses and branch
   // pointers of the tree will be set.
   // It is normally not necessary to make changes to the generated
   // code, but the routine can be extended by the user if needed.
   // Init() will be called many times when running on PROOF
   // (once per file to be processed).

   // Set branch addresses and branch pointers
   if (!tree) return;
   fChain = tree;
   fCurrent = -1;
   fChain->SetMakeClass(1);

   fChain->SetBranchAddress("NTOYS", &NTOYS, &b_NTOYS);
   fChain->SetBranchAddress("toy_index", toy_index, &b_toy_index);
   fChain->SetBranchAddress("toy_weight", toy_weight, &b_toy_weight);
   fChain->SetBranchAddress("entry", &entry, &b_entry);
   fChain->SetBranchAddress("toy_ref", &toy_ref, &b_toy_ref);
   fChain->SetBranchAddress("weight_syst", weight_syst, &b_weight_syst);
   fChain->SetBranchAddress("weight_syst_total", weight_syst_total, &b_weight_syst_total);
   fChain->SetBranchAddress("NWEIGHTSYST", &NWEIGHTSYST, &b_NWEIGHTSYST);
   fChain->SetBranchAddress("HMPdetector", &HMPdetector, &b_HMPdetector);
   fChain->SetBranchAddress("HMPgparent", &HMPgparent, &b_HMPgparent);
   fChain->SetBranchAddress("HMPmectopology", &HMPmectopology, &b_HMPmectopology);
   fChain->SetBranchAddress("HMPnutype", &HMPnutype, &b_HMPnutype);
   fChain->SetBranchAddress("HMPparent", &HMPparent, &b_HMPparent);
   fChain->SetBranchAddress("HMPparticle", &HMPparticle, &b_HMPparticle);
   fChain->SetBranchAddress("HMPprimary", &HMPprimary, &b_HMPprimary);
   fChain->SetBranchAddress("HMPreaction", &HMPreaction, &b_HMPreaction);
   fChain->SetBranchAddress("HMPreaction2", &HMPreaction2, &b_HMPreaction2);
   fChain->SetBranchAddress("HMPreactionnofv", &HMPreactionnofv, &b_HMPreactionnofv);
   fChain->SetBranchAddress("HMPreactionsand", &HMPreactionsand, &b_HMPreactionsand);
   fChain->SetBranchAddress("HMPreactionsand2", &HMPreactionsand2, &b_HMPreactionsand2);
   fChain->SetBranchAddress("HMPtarget", &HMPtarget, &b_HMPtarget);
   fChain->SetBranchAddress("HMPtopology", &HMPtopology, &b_HMPtopology);
   fChain->SetBranchAddress("HMPtopology2", &HMPtopology2, &b_HMPtopology2);
   fChain->SetBranchAddress("detector", &detector, &b_detector);
   fChain->SetBranchAddress("gparent", &gparent, &b_gparent);
   fChain->SetBranchAddress("mectopology", &mectopology, &b_mectopology);
   fChain->SetBranchAddress("nutype", &nutype, &b_nutype);
   fChain->SetBranchAddress("parent", &parent, &b_parent);
   fChain->SetBranchAddress("particle", &particle, &b_particle);
   fChain->SetBranchAddress("primary", &primary, &b_primary);
   fChain->SetBranchAddress("reaction", &reaction, &b_reaction);
   fChain->SetBranchAddress("reaction2", &reaction2, &b_reaction2);
   fChain->SetBranchAddress("reactionnofv", &reactionnofv, &b_reactionnofv);
   fChain->SetBranchAddress("reactionsand", &reactionsand, &b_reactionsand);
   fChain->SetBranchAddress("reactionsand2", &reactionsand2, &b_reactionsand2);
   fChain->SetBranchAddress("target", &target, &b_target);
   fChain->SetBranchAddress("topology", &topology, &b_topology);
   fChain->SetBranchAddress("topology2", &topology2, &b_topology2);
   fChain->SetBranchAddress("redo", redo, &b_redo);
   fChain->SetBranchAddress("accum_level", accum_level, &b_accum_level);
   fChain->SetBranchAddress("cut0", cut0, &b_cut0);
   fChain->SetBranchAddress("cut1", cut1, &b_cut1);
   fChain->SetBranchAddress("cut2", cut2, &b_cut2);
   fChain->SetBranchAddress("cut3", cut3, &b_cut3);
   fChain->SetBranchAddress("cut4", cut4, &b_cut4);
   fChain->SetBranchAddress("cut5", cut5, &b_cut5);
   fChain->SetBranchAddress("cut6", cut6, &b_cut6);
   fChain->SetBranchAddress("cut7", cut7, &b_cut7);
   fChain->SetBranchAddress("cut8", cut8, &b_cut8);
   fChain->SetBranchAddress("cut9", cut9, &b_cut9);
   fChain->SetBranchAddress("cut10", cut10, &b_cut10);
   fChain->SetBranchAddress("cut11", cut11, &b_cut11);
   fChain->SetBranchAddress("toy_par_weight", toy_par_weight, &b_toy_par_weight);
   fChain->SetBranchAddress("toy_par_var", toy_par_var, &b_toy_par_var);
   fChain->SetBranchAddress("run", &run, &b_run);
   fChain->SetBranchAddress("subrun", &subrun, &b_subrun);
   fChain->SetBranchAddress("evt", &evt, &b_evt);
   fChain->SetBranchAddress("bunch", &bunch, &b_bunch);
   fChain->SetBranchAddress("ntpctracks", &ntpctracks, &b_ntpctracks);
   fChain->SetBranchAddress("ntpcposQualityFV", &ntpcposQualityFV, &b_ntpcposQualityFV);
   fChain->SetBranchAddress("ntpcnegQualityFV", &ntpcnegQualityFV, &b_ntpcnegQualityFV);
   fChain->SetBranchAddress("nfgdtracks", &nfgdtracks, &b_nfgdtracks);
   fChain->SetBranchAddress("nfgdonlytracks", &nfgdonlytracks, &b_nfgdonlytracks);
   fChain->SetBranchAddress("NWEIGHTS", &NWEIGHTS, &b_NWEIGHTS);
   fChain->SetBranchAddress("weight", weight, &b_weight);
   fChain->SetBranchAddress("chargeid_nwrong", chargeid_nwrong, &b_chargeid_nwrong);
   fChain->SetBranchAddress("chargeid_ncorrect", chargeid_ncorrect, &b_chargeid_ncorrect);
   fChain->SetBranchAddress("tpcfgdmatch_nwrong", tpcfgdmatch_nwrong, &b_tpcfgdmatch_nwrong);
   fChain->SetBranchAddress("tpcfgdmatch_ncorrect", tpcfgdmatch_ncorrect, &b_tpcfgdmatch_ncorrect);
   fChain->SetBranchAddress("tpctr_nwrong", tpctr_nwrong, &b_tpctr_nwrong);
   fChain->SetBranchAddress("tpctr_ncorrect", tpctr_ncorrect, &b_tpctr_ncorrect);
   fChain->SetBranchAddress("fgdtr_nwrong", fgdtr_nwrong, &b_fgdtr_nwrong);
   fChain->SetBranchAddress("fgdtr_ncorrect", fgdtr_ncorrect, &b_fgdtr_ncorrect);
   fChain->SetBranchAddress("fgdhybtr_nwrong", fgdhybtr_nwrong, &b_fgdhybtr_nwrong);
   fChain->SetBranchAddress("fgdhybtr_ncorrect", fgdhybtr_ncorrect, &b_fgdhybtr_ncorrect);
   fChain->SetBranchAddress("meeff_nwrong", meeff_nwrong, &b_meeff_nwrong);
   fChain->SetBranchAddress("meeff_ncorrect", meeff_ncorrect, &b_meeff_ncorrect);
   fChain->SetBranchAddress("mepur_nwrong", mepur_nwrong, &b_mepur_nwrong);
   fChain->SetBranchAddress("mepur_ncorrect", mepur_ncorrect, &b_mepur_ncorrect);
   fChain->SetBranchAddress("TruthVertexID", &TruthVertexID, &b_TruthVertexID);
   fChain->SetBranchAddress("RooVtxIndex", &RooVtxIndex, &b_RooVtxIndex);
   fChain->SetBranchAddress("RooVtxEntry", &RooVtxEntry, &b_RooVtxEntry);
   fChain->SetBranchAddress("nu_parentpdg", &nu_parentpdg, &b_nu_parentpdg);
   fChain->SetBranchAddress("nu_pdg", &nu_pdg, &b_nu_pdg);
   fChain->SetBranchAddress("nu_trueE", &nu_trueE, &b_nu_trueE);
   fChain->SetBranchAddress("nu_truereac", &nu_truereac, &b_nu_truereac);
   fChain->SetBranchAddress("nu_truedir", nu_truedir, &b_nu_truedir);
   fChain->SetBranchAddress("vertex_det", &vertex_det, &b_vertex_det);
   fChain->SetBranchAddress("vertex_pos", vertex_pos, &b_vertex_pos);
   fChain->SetBranchAddress("vertex_truepos", vertex_truepos, &b_vertex_truepos);
   fChain->SetBranchAddress("nu_NuParentDecPoint", nu_NuParentDecPoint, &b_nu_NuParentDecPoint);
   fChain->SetBranchAddress("selmu_truemom", &selmu_truemom, &b_selmu_truemom);
   fChain->SetBranchAddress("selmu_truepos", selmu_truepos, &b_selmu_truepos);
   fChain->SetBranchAddress("selmu_trueendpos", selmu_trueendpos, &b_selmu_trueendpos);
   fChain->SetBranchAddress("selmu_truedir", selmu_truedir, &b_selmu_truedir);
   fChain->SetBranchAddress("truemu_truemom", &truemu_truemom, &b_truemu_truemom);
   fChain->SetBranchAddress("truemu_truecostheta", &truemu_truecostheta, &b_truemu_truecostheta);
   fChain->SetBranchAddress("truemu_truedir", truemu_truedir, &b_truemu_truedir);
   fChain->SetBranchAddress("selmu_dir", selmu_dir, &b_selmu_dir);
   fChain->SetBranchAddress("selmu_pos", selmu_pos, &b_selmu_pos);
   fChain->SetBranchAddress("selmu_endpos", selmu_endpos, &b_selmu_endpos);
   fChain->SetBranchAddress("selmu_costheta", &selmu_costheta, &b_selmu_costheta);
   fChain->SetBranchAddress("selmu_closest_tpc", &selmu_closest_tpc, &b_selmu_closest_tpc);
   fChain->SetBranchAddress("selmu_detectors", &selmu_detectors, &b_selmu_detectors);
   fChain->SetBranchAddress("selmu_mom", selmu_mom, &b_selmu_mom);
   fChain->SetBranchAddress("selmu_MomentumError", selmu_MomentumError, &b_selmu_MomentumError);
   fChain->SetBranchAddress("selmu_NDOF", selmu_NDOF, &b_selmu_NDOF);
   fChain->SetBranchAddress("selmu_Chi2", selmu_Chi2, &b_selmu_Chi2);
   fChain->SetBranchAddress("selmu_RangeMomentumMuon", selmu_RangeMomentumMuon, &b_selmu_RangeMomentumMuon);
   fChain->SetBranchAddress("selmu_theta", selmu_theta, &b_selmu_theta);
   fChain->SetBranchAddress("selmu_amom", &selmu_amom, &b_selmu_amom);
   fChain->SetBranchAddress("selmu_likemu", &selmu_likemu, &b_selmu_likemu);
   fChain->SetBranchAddress("selmu_likemip", &selmu_likemip, &b_selmu_likemip);
   fChain->SetBranchAddress("shmn_mom", &shmn_mom, &b_shmn_mom);
   fChain->SetBranchAddress("selmu_ntpcs", &selmu_ntpcs, &b_selmu_ntpcs);
   fChain->SetBranchAddress("selmu_tpc_det", selmu_tpc_det, &b_selmu_tpc_det);
   fChain->SetBranchAddress("selmu_tpc_nhits", selmu_tpc_nhits, &b_selmu_tpc_nhits);
   fChain->SetBranchAddress("selmu_tpc_nnodes", selmu_tpc_nnodes, &b_selmu_tpc_nnodes);
   fChain->SetBranchAddress("selmu_tpc_charge", selmu_tpc_charge, &b_selmu_tpc_charge);
   fChain->SetBranchAddress("selmu_tpc_mom", selmu_tpc_mom, &b_selmu_tpc_mom);
   fChain->SetBranchAddress("selmu_tpc_bfield_mom", selmu_tpc_bfield_mom, &b_selmu_tpc_bfield_mom);
   fChain->SetBranchAddress("selmu_tpc_efield_mom", selmu_tpc_efield_mom, &b_selmu_tpc_efield_mom);
   fChain->SetBranchAddress("selmu_tpc_emom", selmu_tpc_emom, &b_selmu_tpc_emom);
   fChain->SetBranchAddress("selmu_tpc_truemom", selmu_tpc_truemom, &b_selmu_tpc_truemom);
   fChain->SetBranchAddress("selmu_tpc_dedx_raw", selmu_tpc_dedx_raw, &b_selmu_tpc_dedx_raw);
   fChain->SetBranchAddress("selmu_tpc_dedx_expmu", selmu_tpc_dedx_expmu, &b_selmu_tpc_dedx_expmu);
   fChain->SetBranchAddress("selmu_tpc_dedx_exppi", selmu_tpc_dedx_exppi, &b_selmu_tpc_dedx_exppi);
   fChain->SetBranchAddress("selmu_tpc_dedx_expele", selmu_tpc_dedx_expele, &b_selmu_tpc_dedx_expele);
   fChain->SetBranchAddress("selmu_tpc_dedx_expp", selmu_tpc_dedx_expp, &b_selmu_tpc_dedx_expp);
   fChain->SetBranchAddress("selmu_tpc_pullmu", selmu_tpc_pullmu, &b_selmu_tpc_pullmu);
   fChain->SetBranchAddress("selmu_tpc_pullpi", selmu_tpc_pullpi, &b_selmu_tpc_pullpi);
   fChain->SetBranchAddress("selmu_tpc_pullele", selmu_tpc_pullele, &b_selmu_tpc_pullele);
   fChain->SetBranchAddress("selmu_tpc_pullp", selmu_tpc_pullp, &b_selmu_tpc_pullp);
   fChain->SetBranchAddress("selmu_tpc_dedx", selmu_tpc_dedx, &b_selmu_tpc_dedx);
   fChain->SetBranchAddress("selmu_nfgds", &selmu_nfgds, &b_selmu_nfgds);
   fChain->SetBranchAddress("selmu_fgd_det", selmu_fgd_det, &b_selmu_fgd_det);
   fChain->SetBranchAddress("selmu_fgd_x", selmu_fgd_x, &b_selmu_fgd_x);
   fChain->SetBranchAddress("selmu_fgd_V00", selmu_fgd_V00, &b_selmu_fgd_V00);
   fChain->SetBranchAddress("selmu_fgd_V11", selmu_fgd_V11, &b_selmu_fgd_V11);
   fChain->SetBranchAddress("selmu_fgd_V33", selmu_fgd_V33, &b_selmu_fgd_V33);
   fChain->SetBranchAddress("selmu_fgd_V55", selmu_fgd_V55, &b_selmu_fgd_V55);
   fChain->SetBranchAddress("selmu_fgd_V77", selmu_fgd_V77, &b_selmu_fgd_V77);
   fChain->SetBranchAddress("selmu_fgd_pullmu", selmu_fgd_pullmu, &b_selmu_fgd_pullmu);
   fChain->SetBranchAddress("selmu_necals", &selmu_necals, &b_selmu_necals);
   fChain->SetBranchAddress("selmu_ecal_det", selmu_ecal_det, &b_selmu_ecal_det);
   fChain->SetBranchAddress("selmu_ecal_nhits", selmu_ecal_nhits, &b_selmu_ecal_nhits);
   fChain->SetBranchAddress("selmu_ecal_nnodes", selmu_ecal_nnodes, &b_selmu_ecal_nnodes);
   fChain->SetBranchAddress("selmu_ecal_length", selmu_ecal_length, &b_selmu_ecal_length);
   fChain->SetBranchAddress("selmu_ecal_showerstartpos", selmu_ecal_showerstartpos, &b_selmu_ecal_showerstartpos);
   fChain->SetBranchAddress("selmu_ecal_showerendpos", selmu_ecal_showerendpos, &b_selmu_ecal_showerendpos);
   fChain->SetBranchAddress("selmu_ecal_showerstartdir", selmu_ecal_showerstartdir, &b_selmu_ecal_showerstartdir);
   fChain->SetBranchAddress("selmu_ecal_showerenddir", selmu_ecal_showerenddir, &b_selmu_ecal_showerenddir);
   fChain->SetBranchAddress("selmu_ecal_EMenergy", selmu_ecal_EMenergy, &b_selmu_ecal_EMenergy);
   fChain->SetBranchAddress("selmu_ecal_edeposit", selmu_ecal_edeposit, &b_selmu_ecal_edeposit);
   fChain->SetBranchAddress("selmu_ecal_IsShower", selmu_ecal_IsShower, &b_selmu_ecal_IsShower);
   fChain->SetBranchAddress("selmu_ecal_mipem", selmu_ecal_mipem, &b_selmu_ecal_mipem);
   fChain->SetBranchAddress("selmu_ecal_mippion", selmu_ecal_mippion, &b_selmu_ecal_mippion);
   fChain->SetBranchAddress("selmu_ecal_emhip", selmu_ecal_emhip, &b_selmu_ecal_emhip);
   fChain->SetBranchAddress("selmu_ecal_containment", selmu_ecal_containment, &b_selmu_ecal_containment);
   fChain->SetBranchAddress("selmu_ecal_trshval", selmu_ecal_trshval, &b_selmu_ecal_trshval);
   fChain->SetBranchAddress("selmu_ecal_mostupstreamlayerhit", selmu_ecal_mostupstreamlayerhit, &b_selmu_ecal_mostupstreamlayerhit);
   fChain->SetBranchAddress("fgd_ecal_match_failed", fgd_ecal_match_failed, &b_fgd_ecal_match_failed);
   fChain->SetBranchAddress("fgd_ecal_match_success", fgd_ecal_match_success, &b_fgd_ecal_match_success);
   fChain->SetBranchAddress("fgdecal_smrd_match_failed", fgdecal_smrd_match_failed, &b_fgdecal_smrd_match_failed);
   fChain->SetBranchAddress("fgdecal_smrd_match_success", fgdecal_smrd_match_success, &b_fgdecal_smrd_match_success);
   fChain->SetBranchAddress("HM_pos", HM_pos, &b_HM_pos);
   fChain->SetBranchAddress("selmu_invpt", &selmu_invpt, &b_selmu_invpt);
   fChain->SetBranchAddress("selmu_trueinvpt", &selmu_trueinvpt, &b_selmu_trueinvpt);
   fChain->SetBranchAddress("selmu_charge", &selmu_charge, &b_selmu_charge);
   fChain->SetBranchAddress("selmu_truecharge", &selmu_truecharge, &b_selmu_truecharge);
   fChain->SetBranchAddress("selmu_length", &selmu_length, &b_selmu_length);
   fChain->SetBranchAddress("nmichel1", &nmichel1, &b_nmichel1);
   fChain->SetBranchAddress("nmichel2", &nmichel2, &b_nmichel2);
   fChain->SetBranchAddress("nu_e", nu_e, &b_nu_e);
   fChain->SetBranchAddress("nu_e_2tracks", nu_e_2tracks, &b_nu_e_2tracks);
   fChain->SetBranchAddress("nu_e_2tracks_mumomrange", nu_e_2tracks_mumomrange, &b_nu_e_2tracks_mumomrange);
   fChain->SetBranchAddress("nu_e_momrange", &nu_e_momrange, &b_nu_e_momrange);
   fChain->SetBranchAddress("nu_e_momrange_vertex", &nu_e_momrange_vertex, &b_nu_e_momrange_vertex);
   fChain->SetBranchAddress("q2_rec", q2_rec, &b_q2_rec);
   fChain->SetBranchAddress("q2_rec_momrange", &q2_rec_momrange, &b_q2_rec_momrange);
   fChain->SetBranchAddress("selmu_mom_range", selmu_mom_range, &b_selmu_mom_range);
   fChain->SetBranchAddress("selmu_mom_range_vertex", selmu_mom_range_vertex, &b_selmu_mom_range_vertex);
   fChain->SetBranchAddress("selmu_trueztheta", &selmu_trueztheta, &b_selmu_trueztheta);
   fChain->SetBranchAddress("selmu_truenutheta", &selmu_truenutheta, &b_selmu_truenutheta);
   fChain->SetBranchAddress("selp_truemom", &selp_truemom, &b_selp_truemom);
   fChain->SetBranchAddress("selp_truepos", selp_truepos, &b_selp_truepos);
   fChain->SetBranchAddress("selp_trueendpos", selp_trueendpos, &b_selp_trueendpos);
   fChain->SetBranchAddress("selp_truedir", selp_truedir, &b_selp_truedir);
   fChain->SetBranchAddress("selp_trueztheta", &selp_trueztheta, &b_selp_trueztheta);
   fChain->SetBranchAddress("selp_truenutheta", &selp_truenutheta, &b_selp_truenutheta);
   fChain->SetBranchAddress("selp_mom", selp_mom, &b_selp_mom);
   fChain->SetBranchAddress("selp_amom", selp_amom, &b_selp_amom);
   fChain->SetBranchAddress("selp_mom_range", selp_mom_range, &b_selp_mom_range);
   fChain->SetBranchAddress("selp_mom_range_vertex", selp_mom_range_vertex, &b_selp_mom_range_vertex);
   fChain->SetBranchAddress("selp_costheta", selp_costheta, &b_selp_costheta);
   fChain->SetBranchAddress("selp_dir", selp_dir, &b_selp_dir);
   fChain->SetBranchAddress("selp_theta", &selp_theta, &b_selp_theta);
   fChain->SetBranchAddress("selp_pos", selp_pos, &b_selp_pos);
   fChain->SetBranchAddress("selp_endpos", selp_endpos, &b_selp_endpos);
   fChain->SetBranchAddress("selp_likep", selp_likep, &b_selp_likep);
   fChain->SetBranchAddress("selp_likemip", selp_likemip, &b_selp_likemip);
   fChain->SetBranchAddress("selp_closest_tpc", &selp_closest_tpc, &b_selp_closest_tpc);
   fChain->SetBranchAddress("selp_detectors", &selp_detectors, &b_selp_detectors);
   fChain->SetBranchAddress("selp_ntpcs", &selp_ntpcs, &b_selp_ntpcs);
   fChain->SetBranchAddress("selp_tpc_det", selp_tpc_det, &b_selp_tpc_det);
   fChain->SetBranchAddress("selp_tpc_nhits", selp_tpc_nhits, &b_selp_tpc_nhits);
   fChain->SetBranchAddress("selp_tpc_nnodes", selp_tpc_nnodes, &b_selp_tpc_nnodes);
   fChain->SetBranchAddress("selp_tpc_charge", selp_tpc_charge, &b_selp_tpc_charge);
   fChain->SetBranchAddress("selp_tpc_mom", selp_tpc_mom, &b_selp_tpc_mom);
   fChain->SetBranchAddress("selp_tpc_emom", selp_tpc_emom, &b_selp_tpc_emom);
   fChain->SetBranchAddress("selp_tpc_truemom", selp_tpc_truemom, &b_selp_tpc_truemom);
   fChain->SetBranchAddress("selp_tpc_dedx_raw", selp_tpc_dedx_raw, &b_selp_tpc_dedx_raw);
   fChain->SetBranchAddress("selp_tpc_dedx_expmu", selp_tpc_dedx_expmu, &b_selp_tpc_dedx_expmu);
   fChain->SetBranchAddress("selp_tpc_dedx_exppi", selp_tpc_dedx_exppi, &b_selp_tpc_dedx_exppi);
   fChain->SetBranchAddress("selp_tpc_dedx_expele", selp_tpc_dedx_expele, &b_selp_tpc_dedx_expele);
   fChain->SetBranchAddress("selp_tpc_dedx_expp", selp_tpc_dedx_expp, &b_selp_tpc_dedx_expp);
   fChain->SetBranchAddress("selp_nfgds", &selp_nfgds, &b_selp_nfgds);
   fChain->SetBranchAddress("selp_fgd_det", selp_fgd_det, &b_selp_fgd_det);
   fChain->SetBranchAddress("selp_fgd_x", selp_fgd_x, &b_selp_fgd_x);
   fChain->SetBranchAddress("selp_vertex_det", &selp_vertex_det, &b_selp_vertex_det);
   fChain->SetBranchAddress("selp_vertex_pos", selp_vertex_pos, &b_selp_vertex_pos);
   fChain->SetBranchAddress("selp_vertex_truepos", selp_vertex_truepos, &b_selp_vertex_truepos);
   fChain->SetBranchAddress("nalltpctracks", &nalltpctracks, &b_nalltpctracks);
   fChain->SetBranchAddress("ntpcnegQualityOutFV", &ntpcnegQualityOutFV, &b_ntpcnegQualityOutFV);
   fChain->SetBranchAddress("ntpcposQualityOutFV", &ntpcposQualityOutFV, &b_ntpcposQualityOutFV);
   fChain->SetBranchAddress("nbadquaFV", &nbadquaFV, &b_nbadquaFV);
   fChain->SetBranchAddress("nbadquaOutFV", &nbadquaOutFV, &b_nbadquaOutFV);
   fChain->SetBranchAddress("nallfgd1tracks", &nallfgd1tracks, &b_nallfgd1tracks);
   fChain->SetBranchAddress("nallfgd1conttracks", &nallfgd1conttracks, &b_nallfgd1conttracks);
   fChain->SetBranchAddress("nfgdContFV", &nfgdContFV, &b_nfgdContFV);
   fChain->SetBranchAddress("nfgdContOutFV", &nfgdContOutFV, &b_nfgdContOutFV);
   fChain->SetBranchAddress("nfgdothertracks", &nfgdothertracks, &b_nfgdothertracks);
   fChain->SetBranchAddress("ntrackertracks", &ntrackertracks, &b_ntrackertracks);
   Notify();
}

Bool_t AnaTask1::Notify()
{
   // The Notify() function is called when a new file is opened. This
   // can be either for a new TTree in a TChain or when when a new TTree
   // is started when using PROOF. It is normally not necessary to make changes
   // to the generated code, but the routine can be extended by the
   // user if needed. The return value is currently not used.

   return kTRUE;
}

void AnaTask1::Show(Long64_t entry)
{
// Print contents of entry.
// If entry is not specified, print current entry
   if (!fChain) return;
   fChain->Show(entry);
}
Int_t AnaTask1::Cut(Long64_t entry)
{
// This function may be called from Loop.
// returns  1 if entry is accepted.
// returns -1 otherwise.
   return 1;
}
#endif // #ifdef AnaTask1_cxx
